package com.pro.springbootpro.mapper;

import com.pro.springbootpro.entity.People;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author DJR (1210843430@qq.com)
 */
@Mapper
public interface PeopleMapper {

    People getById(@Param("id") Integer id);

    List<People> getByPage(@Param("start") Integer start, @Param("pageSize") Integer pageSize);

    List<People> getAll();

    void save(@Param("peopleList") List<People> peopleList);
}
